<?php
$this->breadcrumbs = array(
    'Product Categories' => array('admin'),
    $model->name,
);

$this->menu = array(
    array('label' => 'List ProductCategory', 'url' => array('index')),
    array('label' => 'Create ProductCategory', 'url' => array('create')),
    array('label' => 'Update ProductCategory', 'url' => array('update', 'id' => $model->productCategoryId)),
    array('label' => 'Delete ProductCategory', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->productCategoryId), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => 'Manage ProductCategory', 'url' => array('admin')),
);
$this->headTitle = "View Product Category Details";
?>

<div class="widgets">
    <div class="leftTwoSeventh">
        <div class="widget">
            <div class="head">
                <h5 class="iFrames">Category List</h5>
            </div>
            <div class="body">
                <?php
                $this->widget('application.extensions.MTreeView.MTreeView', array(
                    'id' => 'productmtreeview',
                    'collapsed' => true,
                    'animated' => 'fast',
                    'table' => 'pjm_book_category', //what table the menu would come from
                    'hierModel' => 'adjacency', //hierarchy model of the table
                    'conditions' => array('isDeleted=:isDeleted', array(':isDeleted' => 0)), //only show not deleted                                  
                    'fields' => array(//declaration of fields
                        'id' => 'productCategoryId',
                        'text' => 'name', //no `text` column, use `title` instead
                        'alt' => false, //skip using `alt` column
                        'id_parent' => 'parentId', //no `id_parent` column,use `parent_id` instead
                        'task' => false,
                        'icon' => false,
                        'tooltip' => false,
                        'position' => 'name',
                        'url' => array('productcategory/view', array('id' => 'productCategoryId'))
                    ),
                    'template' => '{icon}&nbsp;{text}',
                    'ajaxOptions' => array('update' => '#ajax-update-info')
                ));
                ?>
            </div>
        </div>
    </div>
    <div class="rightFiveSeventh">
        <div class="widget">
            <div class="head">
                <h5 class="iFrames">Category <?php echo $model->name; ?></h5>
            </div>
            <div class="body" id="ajax-update-info">
                <?php
                $this->renderPartial('_detailview', array(
                    'model' => $model,
                ));
                ?>
            </div>
        </div>
    </div>
</div>